package mercurius.fitness.client.rb.measurement.forms;

import com.google.gwt.user.client.rpc.AsyncCallback;

import mercurius.fitness.client.locale.Locale;
import mercurius.fitness.client.rb.measurement.Measurements;
import mercurius.fitness.client.rb.measurement.MeasurementsRB;
import net.pleso.framework.client.bl.forms.IAddForm;
import net.pleso.framework.client.bl.forms.items.IFormItemsGroup;
import net.pleso.framework.client.dal.IDataRow;

public class AddMeasurementsForm extends MeasurementsForm implements IAddForm {

	public AddMeasurementsForm() {
		
	}
	
	public IDataRow createEmptyRow() {
		return new Measurements();
	}

	public void addRow(IDataRow row, AsyncCallback callback) {
		MeasurementsRB.getDataSet().add((Measurements) row, callback);
	}

	public String getCaption() {
		return Locale.constants().add_measurement_caption();
	}

	public IFormItemsGroup[] getGroups() {
		return groups;
	}
}
